package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.sql.Date;
import java.util.Objects;

@Entity
@Table(name = "devt_excel")
public class DevtExcelEntity {
    private String id;
    private String name;
    private String bz;
    private Integer xh;
    private String typeId;
    private Date createTime;
    private String tableId;
    private String fileLength;
    private String datacontent;
    private String contentType;
    private String fileNameOrg;
    private Integer dataNum;
    private Integer headNum;

    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name", nullable = true, length = 256)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "bz", nullable = true, length = 1024)
    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }

    @Basic
    @Column(name = "type_id", nullable = true, length = 64)
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    @Basic
    @Column(name = "create_time", nullable = true)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "table_id", nullable = true, length = 64)
    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    @Basic
    @Column(name = "file_length", nullable = true, length = 64)
    public String getFileLength() {
        return fileLength;
    }

    public void setFileLength(String fileLength) {
        this.fileLength = fileLength;
    }

    @Basic
    @Column(name = "datacontent", nullable = true, length = 2147483647)
    public String getDatacontent() {
        return datacontent;
    }

    public void setDatacontent(String datacontent) {
        this.datacontent = datacontent;
    }

    @Basic
    @Column(name = "content_type", nullable = true, length = 64)
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Basic
    @Column(name = "file_name_org", nullable = true, length = 64)
    public String getFileNameOrg() {
        return fileNameOrg;
    }

    public void setFileNameOrg(String fileNameOrg) {
        this.fileNameOrg = fileNameOrg;
    }

    @Basic
    @Column(name = "data_num", nullable = true)
    public Integer getDataNum() {
        return dataNum;
    }

    public void setDataNum(Integer dataNum) {
        this.dataNum = dataNum;
    }

    @Basic
    @Column(name = "head_num", nullable = true)
    public Integer getHeadNum() {
        return headNum;
    }

    public void setHeadNum(Integer headNum) {
        this.headNum = headNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtExcelEntity that = (DevtExcelEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(bz, that.bz) && Objects.equals(xh, that.xh) && Objects.equals(typeId, that.typeId) && Objects.equals(createTime, that.createTime) && Objects.equals(tableId, that.tableId) && Objects.equals(fileLength, that.fileLength) && Objects.equals(datacontent, that.datacontent) && Objects.equals(contentType, that.contentType) && Objects.equals(fileNameOrg, that.fileNameOrg) && Objects.equals(dataNum, that.dataNum) && Objects.equals(headNum, that.headNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, bz, xh, typeId, createTime, tableId, fileLength, datacontent, contentType, fileNameOrg, dataNum, headNum);
    }
}
